import request from "@/utils/request";

export function addLearningSituation(trainingPlanId, documentVideoId, percentage) {
    return request({
        url: '/learningSituation/addLearningSituation?trainingPlanId=' + trainingPlanId + "&documentVideoId=" + documentVideoId + "&percentage=" + percentage,
        method: 'post',
    })
}

export function getLearningSituationOfOnePlan(user, page, pageSize) {
    return request({
        url: '/learningSituation/getLearningSituationOfOnePlan?'+'page='+page+'&pageSize='+pageSize,
        method: 'post',
        data: user
    })
}

export function getLearningSituationList(user) {
    return request({
        url: '/learningSituation/getLearningSituationList',
        method: 'post',
        data: user
    })
}
